home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1994 November: Tool Chest / Dev.CD Nov 94.toast / New System Software Extensions / Telephone Manager 1.1.1 / Install / Development / ISDNToolIntf.p < prev    next >
Encoding:
Text File  |  1993-07-20  |  3.7 KB  |  116 lines  |  [TEXT/MPS ]

  1.  
  2. {
  3.  ISDNToolIntf.p
  4.  Pascal Interface to the Apple ISDN Telephone Tool
  5.  
  6.   Copyright Apple Computer, Inc. 1990-1993
  7.   All rights reserved
  8. }
  9.  
  10.  
  11. {$IFC UNDEFINED UsingIncludes}
  12. {$SETC UsingIncludes := 0}
  13. {$ENDC}
  14.  
  15. {$IFC NOT UsingIncludes}
  16.     UNIT ISDNToolIntf;
  17.     INTERFACE
  18. {$ENDC}
  19.  
  20. {$IFC UNDEFINED UsingISDNToolIntf}
  21. {$SETC UsingISDNToolIntf := 1}
  22.  
  23. {$I+}
  24. {$SETC ISDNToolIntfIncludes := UsingIncludes}
  25. {$SETC UsingIncludes := 1}
  26.  
  27. {$IFC UNDEFINED UsingTypes}
  28. {$I $$Shell(PInterfaces)Types.p}
  29. {$ENDC}
  30.  
  31. {$IFC UNDEFINED UsingTelephones}
  32. {$I $$Shell(PInterfaces)Telephones.p}
  33. {$ENDC}
  34.  
  35. {$SETC UsingIncludes := ISDNToolIntfIncludes}
  36.  
  37. CONST
  38.  
  39. { csCodes }
  40. telISDNLocalRecord            =    1;
  41. telISDNLocalPlayback        =    2;
  42. telISDNNetworkRecord        =    3;
  43. telISDNNetworkPlayback        =    4;
  44. telISDNLocalStop            =    5;
  45. telISDNNetworkStop            =    6;
  46. telISDNBeginRPSession        =    7;
  47. telISDNEndRPSession            =    8;
  48.  
  49. { Result Codes }
  50. isdnRPnoError                =    0;                    { no error during RP }
  51. isdnRPLocalDisconnect        =    1;                    { local user disconnected during RP }
  52. isdnRPRemoteDisconnect        =    2;                    { remote user disconnected during RP }
  53. isdnRPLocalStop                =    3;                    { local side stopped local record/playback via TELISDNLocalStop}
  54. isdnRPNetworkStop            =    4;                    { local side stopped network record/playback via TELISDNNetworkStop }
  55. isdnRPLocalInterruption        =    5;                    { local side interrupted network rec/play by picking up phone }
  56. isdnRPBusy                    =    6;                    { session is in use }
  57. isdnRPNoLocalSession        =    7;                    { local stop didn't work because no local session was in use }
  58. isdnRPNoNetworkSession        =    8;                    { network stop didn't work because no network session was in use }
  59.  
  60. { Error Codes }
  61. isdnError                    =    (-1001);            { some error resulted in stopping of playback }
  62. isdnBadBufferLength            =    (-1002);            { bad buffer length specified in bufflen }
  63. isdnBadNetBufferLength        =    (-1003);            { bad buffer length specified in netRecordBufferLength }
  64. isdnBadBufferSpecified        =    (-1004);            { bad buffer specified in buffPtr }
  65. isdnBadNetBufferSpecified    =    (-1005);            { bad buffer specified in netRecordBufferPtr }
  66. isdnBadcsCode                =    (-1006);            { bad csCode specified }
  67. isdnCannotLoadLocalRPTask    =    (-1007);            { could not load local Rec/Play task to card }
  68. isdnCannotLoadNetworkRPTask =    (-1008);            { could not load network Rec/Play task to card }
  69. isdnCardNotRunning            =    (-1009);            { ISDN card is not running }
  70. isdnCANotInValidState        =    (-1010);            { CA is not in valid state (active or alerting) for network R/P }
  71.  
  72.  
  73.  
  74. { Error Codes that can be returned in termOtherMsg }
  75. isdnFailure                    = (-51);            { board response bad or missing        }
  76. isdnBadData                    = (-52);            { invalid message data    sent by tool    }
  77. isdnNoMemory                = (-53);            { no buffers available    for tool to card communication    }
  78. isdnNoCode                    = (-55);            { isdn card not downloaded                }
  79. isdnSmallBuffer                = (-57);            { read buffer too small                }
  80. isdnLostVFIMsg                = (-58);            { VFI queue overflow                    }
  81. isdnBadSlot                    = (-59);            { selected slot has no card            }
  82. isdnRestart                    = (-60);            { isdn code restarted                    }
  83. isdnBusyVFI                    = (-61);            { R/P or NR/P in progress                }
  84. isdnBadVFICmd                = (-62);            { unrecognized VFI command type        }
  85. isdnReqExcl                    = (-63);            { VFI req has exclusive parms            }
  86. isdnReqUnavailable            = (-64);            { VFI req unavailable                    }
  87. isdnReqState                = (-65);            { VFI req can't be executed now        }
  88. isdnBadProc                    = (-66);            { bad receive notify request            }
  89.  
  90. TYPE
  91.  
  92.     TELISDNOtherPBPtr    =    ^TELISDNOtherPB;
  93.     TELISDNOtherPB        =    RECORD
  94.         csCode                    :    INTEGER;
  95.         bufferPtr                :    Ptr;
  96.         bufferLength            :    LONGINT;
  97.         netRecordBufferPtr        :    Ptr;
  98.         netRecordBufferLength    :    LONGINT;
  99.         hTELCA                    :     TELCAHandle;
  100.         async                    :    INTEGER;
  101.         completionRtn            :    ProcPtr;
  102.         result                    :     TELErr;
  103.         reserved0                :    INTEGER;
  104.         reserved1                :    INTEGER;
  105.         reserved2                :    LONGINT;
  106.         reserved3                :    LONGINT;
  107.     END;
  108.  
  109.  
  110.  
  111. {$ENDC} {UsingISDNToolIntf}
  112.  
  113. {$IFC NOT UsingIncludes}
  114.     END.
  115. {$ENDC}
  116.